import Mock from "mockjs";
import userMocks from "./user.js";
const BASE_URL=process.env.VUE_APP_BASE_API;


[...userMocks].forEach((mock)=>{
  Mock.mock(BASE_URL+ mock.url,mock.type,(req)=>{
    Request.BODY = JSON.parse(req.body);
    return mock.response(req);
  })
})

Mock.mock(`${BASE_URL}/tokens`,()=>{
  return "sadaa"
});
